package com.xingda.packing.dmds.http;

import com.alibaba.fastjson.JSONObject;
import com.xingda.packing.dmds.config.appset.AppSetUrl;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.util.LinkedList;
import java.util.List;

@Slf4j
public class WxLoginHttp {
    public static JSONObject wxLogin(String username, String corp, String veri) {
        List<NameValuePair> list = new LinkedList<>();
        BasicNameValuePair param1 = new BasicNameValuePair("username", username);
        BasicNameValuePair param2 = new BasicNameValuePair("corp", corp);
        BasicNameValuePair param3 = new BasicNameValuePair("veri", veri);
        list.add(param1);
        list.add(param2);
        list.add(param3);
        return BaseHttp.get(AppSetUrl.wx_login_url, list);
    }
}
